package com.trade.domain;

/**
 * Created by Administrator on 2016/10/15.
 */
public class ServiceResult<T> {
    /**
     * 结果状态
     */
    private boolean success;

    /**
     * 错误信息
     */
    private String errMsg;
    /**
     * 错误编号
     */
    private Integer errNum;
    /**
     * 结果Model
     */
    private T Model;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Integer getErrNum() {
        return errNum;
    }

    public void setErrNum(Integer errNum) {
        this.errNum = errNum;
    }

    public T getModel() {
        return Model;
    }

    public void setModel(T model) {
        Model = model;
    }
}
